package com.le.buddha.controller;

import com.le.buddha.common.Response;
import com.le.buddha.mobile.User;
import com.le.buddha.mobile.bo.UserRegisterBO;
import com.le.buddha.service.IUserService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户相关接口
 *
 * @author guole
 * @created 2024/11/15
 */
@RestController
@RequestMapping("/admin/user")
public class AdminUserController {
    @Resource
    private IUserService userService;


    /**
     * list
     *
     * @return
     */
    @GetMapping("/list")
    Response list() {
        List<User> list = userService.list();
        return Response.success(list);
    }
}
